package com.xutong.myfunction.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.AnimationSet;
import android.widget.Button;
import android.widget.Toast;

import com.xutong.myfunction.R;
import com.xutong.myfunction.custom.CustomButton;

public class QiPaoActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_qi_pao);

        final CustomButton customButton = (CustomButton) findViewById(R.id.btnQiPao);
        customButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Toast.makeText(QiPaoActivity.this,"选中",Toast.LENGTH_SHORT).show();
            }
        });


        Button button = (Button) findViewById(R.id.button);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                customButton.startAnimation();


            }
        });



    }
}
